﻿/// Write a program to convert hexadecimal numbers to their decimal representation.


using System;

namespace c_sh_II_lek_7_numeral
{
    class zad4
    {
        static void Main()
        {
            Console.WriteLine(Convert.ToInt32(Console.ReadLine(), 16));
        }
    }
}
